<?php
namespace app\demo\controller;

use yunj\Controller;
use yunj\traits\admin\ErrorController;

class Error extends Controller {

    // 必须
    use ErrorController;

}